/* 全局样式重置与基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* 登录页面样式 */
.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    padding: 20px;
}

.login-container h1 {
    color: #fff;
    margin-bottom: 30px;
    font-size: 2.2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.login-box {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    transition: transform 0.3s ease;
}

.login-box:hover {
    transform: translateY(-5px);
}

.login-box h2 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #4facfe;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.2);
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 12px;
    background: #4facfe;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #3a97e8;
    transform: translateY(-2px);
}

.error-message {
    color: #e74c3c;
    background: #fadbd8;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

/* 首页样式 */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4facfe;
    padding: 20px 0;
}

header nav {
    display: flex;
    align-items: center;
}

header nav ul {
    display: flex;
    list-style: none;
    margin-left: 20px;
}

header nav ul li {
    margin-right: 25px;
}

header nav ul li a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    padding: 20px 0;
    display: block;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

header nav ul li a.active,
header nav ul li a:hover {
    color: #4facfe;
    border-bottom-color: #4facfe;
}

.user-info {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info span {
    color: #555;
}

.logout-btn {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.logout-btn:hover {
    color: #c0392b;
}

main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.dashboard-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 30px;
    margin-bottom: 30px;
}

.dashboard-container h2 {
    color: #333;
    margin-bottom: 25px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.dashboard-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1;
    min-width: 200px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.stat-card h3 {
    color: #666;
    font-size: 1rem;
    margin-bottom: 10px;
}

.stat-card p {
    color: #4facfe;
    font-size: 2.2rem;
    font-weight: 700;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn.primary {
    background: #4facfe;
}

.btn.primary:hover {
    background: #3a97e8;
}

.btn.success {
    background: #2ecc71;
}

.btn.success:hover {
    background: #27ae60;
}

footer {
    text-align: center;
    padding: 20px;
    color: #777;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
    margin-top: 50px;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 响应式调整 */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px;
    }

    header nav ul {
        margin: 10px 0;
    }

    .user-info {
        margin: 10px 0 0 0;
    }

    .dashboard-stats {
        flex-direction: column;
    }
}
/* 容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航优化 */
.main-header {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c84d8;
}

.logo i {
    font-size: 1.8rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin-left: 40px;
    gap: 30px;
}

.main-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.main-nav a.active,
.main-nav a:hover {
    color: #2c84d8;
    border-bottom-color: #2c84d8;
}

.user-info {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 15px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e8f4fd;
    color: #2c84d8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-btn {
    color: #f44336;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #fef0f0;
}

/* 页面标题 */
.page-header {
    margin: 30px 0;
}

.page-header h1 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 8px;
}

.page-description {
    color: #777;
    font-size: 1rem;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
}

.bg-primary {
    background: #2c84d8;
}

.bg-success {
    background: #36b37e;
}

.bg-warning {
    background: #ffab00;
}

.stat-content h3 {
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.stat-trend {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.stat-trend .fas-arrow-up {
    color: #36b37e;
}

.stat-trend .fas-arrow-down {
    color: #f44336;
}

.stat-trend .fas-minus {
    color: #888;
}

/* 快捷操作区 */
.action-panel {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.action-panel h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.95rem;
    text-align: center;
}

.btn.primary {
    background: #2c84d8;
    color: #fff;
}

.btn.primary:hover {
    background: #1d72c7;
}

.btn.success {
    background: #36b37e;
    color: #fff;
}

.btn.success:hover {
    background: #2d9c6b;
}

.btn.info {
    background: #00b8d9;
    color: #fff;
}

.btn.info:hover {
    background: #00a5c5;
}

.btn.secondary {
    background: #f0f2f5;
    color: #444;
}

.btn.secondary:hover {
    background: #e4e6eb;
}

/* 最近活动区 */
.recent-activity {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.recent-activity h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.activity-item:hover {
    background: #f9fafb;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f7ff;
    color: #2c84d8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-details p {
    color: #333;
}

.activity-user {
    font-weight: 600;
    color: #2c84d8;
}

.activity-target {
    font-weight: 600;
    color: #36b37e;
}

.activity-time {
    color: #888;
    font-size: 0.85rem;
    margin-top: 3px;
}

/* 页脚优化 */
footer {
    background: #fff;
    border-top: 1px solid #f0f2f5;
    padding: 30px 0;
    margin-top: 50px;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #2c84d8;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        height: auto;
        padding: 15px 0;
    }

    .main-nav ul {
        margin: 15px 0 0 0;
        width: 100%;
        gap: 15px;
    }

    .user-info {
        margin: 15px 0 0 auto;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        justify-content: center;
    }
}